
**********
**********
**********
*FIGURE 1*
**********
**********
**********

*Upload Cross-country data

twoway (bar v2x_libdem year, yscale(range(0 1)) ylabel(0(0.1)1) yaxis(2)) (line opp_ev year) (line reg_ev year), ylabel(0(2)10)

twoway (bar v2x_libdem year, yaxis(2) color(gs9) barwidth(0.7)) (line reg_st year, lcolor(black) lpattern(solid) type(connected)) (line opp_st year, lcolor(black) lpattern(dash) type(connected)), ylabel(0(20)100)  ytitle(`"Agreement with Strong Leader Item"', axis(1) size(medium)) ytitle(`"Liberal Democracy Index"', axis(2) size(medium)) legend(position(6)) yscale(range(0 1) axis(2)) 


**********
**********
**********
*FIGURE 2*
**********
**********
**********

*Upload Cross-country data

twoway (bar v2x_libdem year, yaxis(2) color(gs9) barwidth(0.7)) (line reg_st year, lcolor(black) lpattern(solid) type(connected)) (line opp_st year, lcolor(black) lpattern(dash) type(connected)), ylabel(0(20)100)  ytitle(`"Agreement with Strong Leader Item"', axis(1) size(medium)) ytitle(`"Liberal Democracy Index"', axis(2) size(medium)) legend(position(6)) yscale(range(0 1) axis(2)) 


**********
**********
**********
*FIGURE 3*
**********
**********
**********

*Open Turkey post-election data

generate threegroups=.
replace threegroups=0 if vote_erdogan18==0 & vote_erdogan23==0
replace threegroups=1 if vote_erdogan18==1 & vote_erdogan23==0
replace threegroups=2 if vote_erdogan18==1 & vote_erdogan23==1
label define threegroups_lb3 0 "Loyal Opposition Voter" 1 "Defected from Government" 2 "Loyal Government Voter"
label values threegroups threegroups_lb3
histogram democracy_level, discrete percent normal ytitle(, size(medlarge)) xtitle(`"How democratic is Turkey today?"') xtitle(, size(medlarge)) by(, legend(off)) by(threegroups, rows(1) note("Source: 2023 Post-election survey."))


**********
**********
**********
*FIGURE 4*
**********
**********
**********

* Open Survey 1 data

set scheme plotplain
est clear  
eststo: reg zchange gain 
estimates store change_g

eststo: reg zchange loss
estimates store change_l

eststo: reg zchange mixed
estimates store change_m

eststo: reg zauthoritarianism gain 
estimates store authoritarianism_g

eststo: reg zauthoritarianism loss
estimates store authoritarianism_l

eststo: reg zauthoritarianism mixed
estimates store authoritarianism_m


eststo: reg zsupport_inst gain 
estimates store support_inst_g

eststo: reg zsupport_inst loss
estimates store support_inst_l

eststo: reg zsupport_inst mixed
estimates store support_inst_m

eststo: reg zdefend_dem gain 
estimates store defend_dem_g

eststo: reg zdefend_dem loss
estimates store defend_dem_l

eststo: reg zdefend_dem mixed
estimates store defend_dem_m

set scheme plotplain
coefplot   (change_g, label (Positive) keep (gain) levels(95 90)) (change_l, label (Negative) keep (loss) levels(95 90)) (change_m, label (Mixed) keep (mixed) levels(95 90)   mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Change in democratic support) || (authoritarianism_g, keep (gain) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (authoritarianism_l, keep (loss) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (authoritarianism_m, keep (mixed) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Support for authoritarianism)  || (support_inst_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (support_inst_l, keep (loss) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f")))  (support_inst_m, keep (mixed) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Support for democratic institutions) || (defend_dem_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (defend_dem_l, keep (loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (defend_dem_m, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Willingness to defend democracy)  ||, drop(_cons) xline(0)   byopts(compact cols(2)) legend (rows(1)) subtitle(, color(black) bcolor(white)) title("All respondents") name(all, replace)

est clear  
eststo: reg zchange gain if vote_regime==1
estimates store change_g

eststo: reg zchange loss if vote_regime==1
estimates store change_l

eststo: reg zchange mixed if vote_regime==1
estimates store change_m

eststo: reg zauthoritarianism gain if  vote_regime==1
estimates store authoritarianism_g

eststo: reg zauthoritarianism loss if vote_regime==1
estimates store authoritarianism_l

eststo: reg zauthoritarianism mixed if vote_regime==1
estimates store authoritarianism_m


eststo: reg zsupport_inst gain  if vote_regime==1
estimates store support_inst_g

eststo: reg zsupport_inst loss if vote_regime==1
estimates store support_inst_l

eststo: reg zsupport_inst mixed if vote_regime==1
estimates store support_inst_m

eststo: reg zdefend_dem gain  if vote_regime==1
estimates store defend_dem_g

eststo: reg zdefend_dem loss if vote_regime==1
estimates store defend_dem_l

eststo: reg zdefend_dem mixed if vote_regime==1
estimates store defend_dem_m

set scheme plotplain
coefplot   (change_g, label (Positive) keep (gain) levels(95 90)) (change_l, label (Negative) keep (loss) levels(95 90)) (change_m, label (Mixed) keep (mixed) levels(95 90)   mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Change in democratic support) || (authoritarianism_g, keep (gain) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (authoritarianism_l, keep (loss) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (authoritarianism_m, keep (mixed) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Support for authoritarianism)  || (support_inst_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (support_inst_l, keep (loss) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f")))  (support_inst_m, keep (mixed) levels(95 90)  mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Support for democratic institutions) || (defend_dem_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (defend_dem_l, keep (loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (defend_dem_m, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Willingness to defend democracy)  ||, drop(_cons) xline(0)   byopts(compact cols(2)) legend (rows(1)) subtitle(, color(black) bcolor(white)) title("Regime voters") name(regime, replace)



**********
**********
**********
*FIGURE 5*
**********
**********
**********


* Open Survey 1 data

set scheme plotplain
est clear  // clear the est locals
eststo: reg zdem_Turkey_1 gain 
estimates store dem_g

eststo: reg zdem_Turkey_1 loss 
estimates store dem_l

eststo: reg zdem_Turkey_1 mixed  
estimates store dem_m

eststo: reg zoutcome_vote_1 gain 
estimates store vote_g

eststo: reg zoutcome_vote_1 loss 
estimates store vote_l

eststo: reg zoutcome_vote_1 mixed 
estimates store vote_m

set scheme plotplain
coefplot   (dem_g, label (Positive) keep (gain) levels(95 90)) (dem_l, label (Negative) keep (loss) levels(95 90)) (dem_m, label (Mixed) keep (mixed) levels(95 90)   mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (How democratic is Turkey?) || (vote_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (vote_l, keep (loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (vote_m, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Likelihood to vote for the regime)  xlabel(-0.2(0.1)0.1) ///
///
||, drop(_cons) xline(0)   byopts(compact cols(2) legend (off)) subtitle(, color(black) bcolor(white)) title("All respondents") name(regime, replace)

set scheme plotplain
est clear  // clear the est locals
eststo: reg zdem_Turkey_1 gain if vote_regime==1
estimates store dem_g

eststo: reg zdem_Turkey_1 loss if vote_regime==1
estimates store dem_l

eststo: reg zdem_Turkey_1 mixed  if vote_regime==1
estimates store dem_m

eststo: reg zoutcome_vote_1 gain if vote_regime==1
estimates store vote_g

eststo: reg zoutcome_vote_1 loss if vote_regime==1
estimates store vote_l

eststo: reg zoutcome_vote_1 mixed if vote_regime==1
estimates store vote_m

set scheme plotplain
coefplot   (dem_g, label (Positive) keep (gain) levels(95 90)) (dem_l, label (Negative) keep (loss) levels(95 90)) (dem_m, label (Mixed) keep (mixed) levels(95 90)   mlabposition(9) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (How democratic is Turkey?) || (vote_g, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (vote_l, keep (loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (vote_m, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (Likelihood to vote for the regime)  xlabel(-0.2(0.1)0.1) ///
///
||, drop(_cons) xline(0)   byopts(compact cols(2) legend (off))  subtitle(, color(black) bcolor(white)) title("Regime voters") name(noregime, replace)

**********
**********
**********
*FIGURE 6*
**********
**********
**********

* Open Survey 2 data


set scheme plotplain
est clear  

eststo: reg thinking_turkey tr_gain_loss
estimates store gain_loss

eststo: reg thinking_turkey tr_gain_placebo 
estimates store tt_gain

eststo: reg thinking_turkey tr_loss_placebo
estimates store tt_loss

eststo: reg extra1 tr_gain_loss
estimates store extra1_gain_loss

eststo: reg extra1 tr_gain_placebo
estimates store extra1_gain

eststo: reg extra1 tr_loss_placebo 
estimates store extra1_loss

eststo: reg extra1 tr_gain_loss
estimates store extra2_gain_loss

eststo: reg extra2 tr_gain_placebo
estimates store extra2_gain

eststo: reg extra2 tr_loss_placebo
estimates store extra2_loss

set scheme plotplain
coefplot   (tt_gain, label (Positive) keep (tr_gain_placebo) levels(95 90)) (tt_loss, label (Negative) keep (tr_loss_placebo) levels(95 90)) (gain_loss, label (Pos vs. Neg) keep (tr_gain_loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R thought about TR) || ///
(extra1_gain, label (Positive) keep (tr_gain_placebo) levels(95 90)) (extra1_loss, label (Negative) keep (tr_loss_placebo) levels(95 90)) (extra1_gain_loss, label (Pos vs. Neg) keep (tr_gain_loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R: TR less democratic) || ///
(extra2_gain, keep (tr_gain_placebo) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (extra2_loss, keep (tr_loss_placebo) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (extra2_gain_loss, keep (tr_gain_loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R: TR less happy) ///
||, drop(_cons) xline(0)   byopts(compact cols(3) legend (off)) subtitle(, color(black) bcolor(white)) title("All respondents") name(all, replace)


set scheme plotplain
est clear  

eststo: reg thinking_turkey tr_gain_loss if regimevote==1
estimates store gain_loss

eststo: reg thinking_turkey tr_gain_placebo if regimevote==1
estimates store tt_gain

eststo: reg thinking_turkey tr_loss_placebo if regimevote==1
estimates store tt_loss

eststo: reg extra1 tr_gain_loss if regimevote==1
estimates store extra1_gain_loss

eststo: reg extra1 tr_gain_placebo if regimevote==1
estimates store extra1_gain

eststo: reg extra1 tr_loss_placebo if regimevote==1
estimates store extra1_loss

eststo: reg extra1 tr_gain_loss if regimevote==1
estimates store extra2_gain_loss

eststo: reg extra2 tr_gain_placebo if regimevote==1
estimates store extra2_gain

eststo: reg extra2 tr_loss_placebo if regimevote==1
estimates store extra2_loss

set scheme plotplain
coefplot   (tt_gain, label (Positive) keep (tr_gain_placebo) levels(95 90)) (tt_loss, label (Negative) keep (tr_loss_placebo) levels(95 90)) (gain_loss, label (Pos vs. Neg) keep (tr_gain_loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R thought about TR) || ///
(extra1_gain, label (Positive) keep (tr_gain_placebo) levels(95 90)) (extra1_loss, label (Negative) keep (tr_loss_placebo) levels(95 90)) (extra1_gain_loss, label (Pos vs. Neg) keep (tr_gain_loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R: TR less democratic) || ///
(extra2_gain, keep (tr_gain_placebo) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (extra2_loss, keep (tr_loss_placebo) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (extra2_gain_loss, keep (tr_gain_loss) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), bylabel (R: TR less happy) || ///
, drop(_cons) xline(0)   byopts(compact cols(3) legend (off)) subtitle(, color(black) bcolor(white)) title("Regime voters") name(regime, replace)


**************************************************************************************************************
**************************************************************************************************************
**************************************************************************************************************
*APPENDIX*****************************************************************************************************
**************************************************************************************************************
**************************************************************************************************************
**************************************************************************************************************


*Table A.2 Balance Tests

* Open Survey 1 data






* Figure A.2: Disaggregated effects: Support for democratic institutions
* Open Survey 1 data


set scheme plotplain
est clear 


foreach var of varlist rightprotest elecfair rightvote legalequality media_dem parliament_dem civilrights courtdem{ 
	eststo: reg `var' gain
estimates store `var'_gain

	eststo: reg `var' loss
estimates store `var'_loss

	eststo: reg `var' mixed
estimates store `var'_mixed

coefplot   (`var'_gain, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (`var'_loss, keep (loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (`var'_mixed, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), || , drop(_cons) xline(0)  legend (off)  byopts(compact cols(2)) subtitle(`var', color(black) bcolor(white)) 
}



* Figure A.3: Support for authoritarianism
* Open Survey 1 data

foreach var of varlist aut_strongleader aut_oneparty aut_army { 
	eststo: reg `var' gain
estimates store `var'_gain

	eststo: reg `var' loss
estimates store `var'_loss

	eststo: reg `var' mixed
estimates store `var'_mixed

coefplot   (`var'_gain, keep (gain) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (`var'_loss, keep (loss) levels(95 90)   mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))) (`var'_mixed, keep (mixed) levels(95 90)  mlabposition(1) mlabgap(*2) mlabel("{it:p} = " + string(@pval,"%9.3f"))), || , drop(_cons) xline(0)  legend (off)  byopts(compact cols(2)) subtitle(`var', color(black) bcolor(white)) 
graph export "${overleaf}auth`var'.pdf", as (pdf) replace

}



*Table A.3: Democratic demand: Full table of Figure 4 in the main text
*See the code above

*Table A.4: Perceived democratic supply and regime evaluations: Full table of Figure 5 in the main text
*See the code above

*Table A.5: Democratic demand: controls added
* Open Survey 1 data

global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength


set scheme plotplain
est clear  // clear the est locals
eststo: reg zchange gain $controls 
estimates store change_g

eststo: reg zchange loss $controls 
estimates store change_l

eststo: reg zchange mixed $controls 
estimates store change_m

eststo: reg zauthoritarianism gain $controls 
estimates store authoritarianism_g

eststo: reg zauthoritarianism loss $controls 
estimates store authoritarianism_l

eststo: reg zauthoritarianism mixed $controls 
estimates store authoritarianism_m


eststo: reg zsupport_inst gain $controls 
estimates store support_inst_g

eststo: reg zsupport_inst loss $controls 
estimates store support_inst_l

eststo: reg zsupport_inst mixed $controls 
estimates store support_inst_m

eststo: reg zdefend_dem gain $controls 
estimates store defend_dem_g

eststo: reg zdefend_dem loss $controls 
estimates store defend_dem_l

eststo: reg zdefend_dem mixed $controls 
estimates store defend_dem_m

esttab using "generalsupport_controls.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Change in Dem. Support" "Support for Auth." "Support for Dem. Inst" "Defending Dem.", pattern(1 0 0 1 0 0 1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  nomtitles nolines noconstant alignment(D{.}{.}{-1})   replace

*Table A.6: Democratic demand: positive versus negative comparison
* Open Survey 1 data
global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

set scheme plotplain
est clear  // clear the est locals

eststo: reg zchange gain_loss 
estimates store change_g

eststo: reg zchange gain_loss $controls
estimates store change_gc

eststo: reg zauthoritarianism gain_loss 
estimates store authoritarianism_g

eststo: reg zauthoritarianism gain_loss $controls
estimates store authoritarianism_gc

eststo: reg zsupport_inst gain_loss 
estimates store support_inst_g

eststo: reg zsupport_inst gain_loss $controls
estimates store support_inst_gc

eststo: reg zdefend_dem gain_loss 
estimates store defend_dem_g


eststo: reg zdefend_dem gain_loss $controls
estimates store defend_dem_gc


esttab using "generalsupport_lossgain.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Change in Dem. Support" "Support for Auth." "Support for Dem. Inst" "Defending Dem.", pattern(1 0 1 0 1 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls") nolines noconstant alignment(D{.}{.}{-1})   replace

*Table A.7: Perceived democratic supply and regime support: Controls added
* Open Survey 1 data
global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

set scheme plotplain
est clear  // clear the est locals
eststo: reg zdem_Turkey_1 gain $controls
estimates store dem_g

eststo: reg zdem_Turkey_1 loss $controls
estimates store dem_l

eststo: reg zdem_Turkey_1 mixed  $controls
estimates store dem_m

eststo: reg zoutcome_vote_1 gain $controls
estimates store vote_g

eststo: reg zoutcome_vote_1 loss $controls
estimates store vote_l

eststo: reg zoutcome_vote_1 mixed $controls
estimates store vote_m


esttab using "regimeevaluations_controls.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("How Democratic is Turkey" "Likelihood to Vote for Regime", pattern(1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.8: Perceived democratic supply and regime support: positive versus negative comparison
* Open Survey 1 data
global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

set scheme plotplain
est clear  // clear the est locals

eststo: reg zdem_Turkey_1 gain_loss 
estimates store dem_g

eststo: reg zdem_Turkey_1 gain_loss $controls 
estimates store dem_gc

eststo: reg zoutcome_vote_1 gain_loss 
estimates store vote_g

eststo: reg zoutcome_vote_1 gain_loss $controls 
estimates store vote_gc

esttab using "regimeevaluations_gains_loss.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("How Democratic is Turkey" "Likelihood to Vote for Regime", pattern(1 0 1 0 ) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Base" "W. Controls" "Base" "W. Controls") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.9: Mediation analysis
* Open Survey 1 data
global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

*net search medeff
medeff (regress  dem_Turkey_1 gain)  (regress  outcome_vote_1 gain dem_Turkey_1),  treat(gain) mediate(dem_Turkey_1) 

*Table A.10: Democratic demand: regime voters
* Open Survey 1 data

*General support for democracy* 

set scheme plotplain
est clear  
eststo: reg zchange gain if vote_regime==1
estimates store change_g

eststo: reg zchange loss if vote_regime==1
estimates store change_l

eststo: reg zchange mixed if vote_regime==1
estimates store change_m

eststo: reg zauthoritarianism gain if vote_regime==1
estimates store authoritarianism_g

eststo: reg zauthoritarianism loss if vote_regime==1
estimates store authoritarianism_l

eststo: reg zauthoritarianism mixed if vote_regime==1
estimates store authoritarianism_m


eststo: reg zsupport_inst gain if vote_regime==1
estimates store support_inst_g

eststo: reg zsupport_inst loss if vote_regime==1
estimates store support_inst_l

eststo: reg zsupport_inst mixed if vote_regime==1
estimates store support_inst_m

eststo: reg zdefend_dem gain if vote_regime==1
estimates store defend_dem_g

eststo: reg zdefend_dem loss if vote_regime==1
estimates store defend_dem_l

eststo: reg zdefend_dem mixed if vote_regime==1
estimates store defend_dem_m

esttab using "generalsupport_regime.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Change in Dem. Support" "Support for Auth." "Support for Dem. Inst" "Defending Dem.", pattern(1 0 0 1 0 0 1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.11: Democratic demand: non-regime voters
* Open Survey 1 data

global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

est clear  
eststo: reg zchange gain if vote_regime==0
estimates store change_g

eststo: reg zchange loss if vote_regime==0
estimates store change_l

eststo: reg zchange mixed if vote_regime==0
estimates store change_m

eststo: reg zauthoritarianism gain if vote_regime==0
estimates store authoritarianism_g

eststo: reg zauthoritarianism loss if vote_regime==0
estimates store authoritarianism_l

eststo: reg zauthoritarianism mixed if vote_regime==0
estimates store authoritarianism_m


eststo: reg zsupport_inst gain if vote_regime==0
estimates store support_inst_g

eststo: reg zsupport_inst loss if vote_regime==0
estimates store support_inst_l

eststo: reg zsupport_inst mixed if vote_regime==0
estimates store support_inst_m

eststo: reg zdefend_dem gain if vote_regime==0
estimates store defend_dem_g

eststo: reg zdefend_dem loss if vote_regime==0
estimates store defend_dem_l

eststo: reg zdefend_dem mixed if vote_regime==0
estimates store defend_dem_m

esttab using "generalsupport_nonregime.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Change in Dem. Support" "Support for Auth." "Support for Dem. Inst" "Defending Dem.", pattern(1 0 0 1 0 0 1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.12: Perceived democratic supply and regime support: regime voters
* Open Survey 1 data

global controls gendemocratic_pre__1 age_1 female religiosity_5 polint educ1 educ2 educ3 vote2-vote7 partisan_strength

set scheme plotplain
est clear  // clear the est locals
eststo: reg zdem_Turkey_1 gain if vote_regime==1
estimates store dem_g

eststo: reg zdem_Turkey_1 loss if vote_regime==1
estimates store dem_l

eststo: reg zdem_Turkey_1 mixed  if vote_regime==1
estimates store dem_m

eststo: reg zoutcome_vote_1 gain if vote_regime==1
estimates store vote_g

eststo: reg zoutcome_vote_1 loss if vote_regime==1
estimates store vote_l

eststo: reg zoutcome_vote_1 mixed if vote_regime==1
estimates store vote_m

esttab using "regimeevaluations_regimevoters.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("How Democratic is Turkey" "Likelihood to Vote for Regime", pattern(1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed") nolines noconstant alignment(D{.}{.}{-1})   replace


* Table A.13: Perceived democratic supply and regime support: non-regime voters
* Open Survey 1 data

set scheme plotplain
est clear  // clear the est locals
eststo: reg zdem_Turkey_1 gain if vote_regime==0
estimates store dem_g

eststo: reg zdem_Turkey_1 loss if vote_regime==0
estimates store dem_l

eststo: reg zdem_Turkey_1 mixed  if vote_regime==0
estimates store dem_m

eststo: reg zoutcome_vote_1 gain if vote_regime==0
estimates store vote_g

eststo: reg zoutcome_vote_1 loss if vote_regime==0
estimates store vote_l

eststo: reg zoutcome_vote_1 mixed if vote_regime==0
estimates store vote_m

esttab using "regimeevaluations_nonregimevoters.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("How Democratic is Turkey" "Likelihood to Vote for Regime", pattern(1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Positive" "Negative" "Mixed" "Positive" "Negative" "Mixed") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.14: Descriptive Statistics in the Follow-up sample
*Just tabulate the variables

*Table A.15: Balance tests: Follow-up
* Open Survey 2 data
global controls gendemocratic_pre__1 age female polint educ1 educ2 educ3 vote2-vote7 partisan_strength

est clear  

eststo: reg tr_gain_loss $controls 
eststo: reg tr_gain_loss $controls if Progress==100

eststo: reg tr_gain_placebo $controls 
estimates store gain

eststo: reg tr_gain_placebo $controls  if Progress==100
estimates store gain_completes

eststo: reg tr_loss_placebo $controls 
estimates store loss

eststo: reg tr_loss_placebo $controls  if Progress==100
estimates store loss_completes


esttab using "balancechecks_follow.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Pos. vs Neg." "Pos. vs. Placebo" "Neg. vs. Placebo", pattern(1 0 1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Full" "Completes" "Full" "Completes" "Full" "Completes") nolines noconstant alignment(D{.}{.}{-1})   replace



*Table A.16: Emotions: Follow-up
* Open Survey 2 data

global controls gendemocratic_pre__1 age female polint educ1 educ2 educ3 vote2-vote7 partisan_strength

set scheme plotplain
est clear  

eststo: reg emotions_a_1 tr_gain_loss 
estimates store enthusiasm

eststo: reg emotions_a_1 tr_gain_loss $controls
estimates store enthusiasm_c

eststo: reg emotions_a_3 tr_gain_loss
estimates store happiness

eststo: reg emotions_a_3 tr_gain_loss $controls
estimates store happiness_c

eststo: reg emotions_a_4 tr_gain_loss
estimates store hope


eststo: reg emotions_a_4 tr_gain_loss $controls
estimates store hope_c


eststo: reg emotions_b_1 tr_gain_loss 
estimates store anxiety

eststo: reg emotions_b_1 tr_gain_loss $controls
estimates store anxiety_c

eststo: reg emotions_b_3 tr_gain_loss
estimates store anger


eststo: reg emotions_b_3 tr_gain_loss $controls
estimates store anger_c


eststo: reg emotions_b_4 tr_gain_loss
estimates store despair

eststo: reg emotions_b_4 tr_gain_loss $controls
estimates store despair_c



esttab using "emotions_follow.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Enthusiasm" "Happiness" "Hope" "Anxiety" "Anger" "Despair", pattern(1 0 1 0 1 0 1 0 1 0 1 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))  mtitles("Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls" "Base" "W. Controls") nolines noconstant alignment(D{.}{.}{-1})   replace


*Table A.17: Outcomes: Follow-up
* Open Survey 2 data

global controls gendemocratic_pre__1 age female polint educ1 educ2 educ3 vote2-vote7 partisan_strength

est clear  

eststo: reg thinking_turkey tr_gain_loss
estimates store gain_loss

eststo: reg thinking_turkey tr_gain_placebo 
estimates store tt_gain

eststo: reg thinking_turkey tr_loss_placebo
estimates store tt_loss

eststo: reg extra1 tr_gain_loss
estimates store extra1_gain_loss

eststo: reg extra1 tr_gain_placebo
estimates store extra1_gain

eststo: reg extra1 tr_loss_placebo 
estimates store extra1_loss

eststo: reg extra1 tr_gain_loss
estimates store extra2_gain_loss

eststo: reg extra2 tr_gain_placebo
estimates store extra2_gain

eststo: reg extra2 tr_loss_placebo
estimates store extra2_loss
esttab using "outcomes_follow.tex", b(3) se(3) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) label booktabs collabels(none) mgroups("Thinking Turkey" "Turkey less democratic" "Turkey less happy", pattern(1 0 0 1 0 0 1 0 0) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) nomtitles  nolines noconstant alignment(D{.}{.}{-1})   replace

